Package io.realm.internal.platform

Types

RealmInitializer
Link copied to clipboard
class RealmInitializer : Initializer<Context>
An initializer to allow Realm to access context properties.
WeakReference
Link copied to clipboard
common
class WeakReference<T : Any>(referred: T)
typealias WeakReference = <ERROR CLASS><T>
Platform agnostic WeakReference wrapper.
typealias WeakReference = WeakReference<T>
typealias WeakReference = WeakReference<T>
typealias WeakReference = WeakReference<T>

Functions

appFilesDirectory
Link copied to clipboard
common
fun appFilesDirectory(): String
Returns the root directory of the platform's App data.
fun appFilesDirectory(): String
fun appFilesDirectory(): String
fun appFilesDirectory(): String
fun appFilesDirectory(): String
fun appFilesDirectory(): String
createDefaultSystemLogger
Link copied to clipboard
common
fun createDefaultSystemLogger(tag: String): RealmLogger
Returns the default logger for the platform.
fun createDefaultSystemLogger(tag: String): RealmLogger
fun createDefaultSystemLogger(tag: String): RealmLogger
fun createDefaultSystemLogger(tag: String): RealmLogger
fun createDefaultSystemLogger(tag: String): RealmLogger
fun createDefaultSystemLogger(tag: String): RealmLogger
ensureNeverFrozen
Link copied to clipboard
common
fun Any.ensureNeverFrozen()
fun Any.ensureNeverFrozen()
Call on an object which should never be frozen.
fun Any.ensureNeverFrozen()
fun Any.ensureNeverFrozen()
fun Any.ensureNeverFrozen()
freeze
Link copied to clipboard
common
fun <TT> T.freeze(): T
fun <TT> T.freeze(): T
Method to freeze state.
fun <T> T.freeze(): T
fun <T> T.freeze(): T
fun <T> T.freeze(): T
multiThreadDispatcher
Link copied to clipboard
common
fun multiThreadDispatcher(size: Int = 3): CoroutineDispatcher
fun multiThreadDispatcher(size: Int = 3): CoroutineDispatcher
Returns a default multithread dispatcher used by Sync.
fun multiThreadDispatcher(size: Int = 3): CoroutineDispatcher
fun multiThreadDispatcher(size: Int = 3): CoroutineDispatcher
fun multiThreadDispatcher(size: Int = 3): CoroutineDispatcher
runBlocking
Link copied to clipboard
common
fun <TT> runBlocking(context: CoroutineContext = EmptyCoroutineContext, block: suspend CoroutineScope.() -> T): T
fun <TT> runBlocking(context: CoroutineContext = EmptyCoroutineContext, block: suspend CoroutineScope.() -> T): T
Runs a new coroutine and blocks the current thread interruptibly until its completion.
fun <T> runBlocking(context: CoroutineContext = EmptyCoroutineContext, block: suspend CoroutineScope.() -> T): T
fun <T> runBlocking(context: CoroutineContext = EmptyCoroutineContext, block: suspend CoroutineScope.() -> T): T
fun <T> runBlocking(context: CoroutineContext = EmptyCoroutineContext, block: suspend CoroutineScope.() -> T): T
singleThreadDispatcher
Link copied to clipboard
common
fun singleThreadDispatcher(id: String): CoroutineDispatcher
Returns a default Realm write dispatcher for a Realm opened on the calling thread.
fun singleThreadDispatcher(id: String): CoroutineDispatcher
fun singleThreadDispatcher(id: String): CoroutineDispatcher
iosArm64
fun singleThreadDispatcher(id: String): CoroutineDispatcher
The default dispatcher for Darwin platforms spawns a new thread with a run loop.
iosX64
fun singleThreadDispatcher(id: String): CoroutineDispatcher
The default dispatcher for Darwin platforms spawns a new thread with a run loop.
macos
fun singleThreadDispatcher(id: String): CoroutineDispatcher
The default dispatcher for Darwin platforms spawns a new thread with a run loop.
threadId
Link copied to clipboard
common
fun threadId(): ULong
fun threadId(): ULong
Return the current thread id.
fun threadId(): ULong
fun threadId(): ULong
fun threadId(): ULong

Properties

isFrozen
Link copied to clipboard
val <TT> T.isFrozen: Boolean
val <TT> T.isFrozen: Boolean
Determine if object is frozen.
val <T> T.isFrozen: Boolean
val <T> T.isFrozen: Boolean
val <T> T.isFrozen: Boolean